<?php if( $status == MyConstants::STATUS_APPROVED ): ?>
    <?php echo __('Operation completed OK') ?>

    <?php if( $filename ): ?>
        <?php echo link_to(
                        ucfirst(__('download'))
                        , 'pradmin/get?file=' . $filename
                    ) ?>
    <?php endif; ?>
        
<?php elseif( $status == MyConstants::STATUS_FAILED ): ?>
    <?php echo __('Operation failed') ?>
<?php endif; ?>

<?php echo button_to(
                __('Export to CSV')
                , 'pradmin/quantityexport'
                , array(
                    'post' => true
                )) ?>

